<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="col-md-3">
                <!-- 登陆用户信息-->
                <div class="panel panel-default">
                    <c:if test="${ empty user  }">
                    <div class="panel-heading">BBS</div>
                    <div class="panel-body text-center">
                        <a class="btn btn-success btn-block" href="${ctx }/register">现在注册</a>
                        <div class="help-block"></div>
                        	如果已经注册请<a href="${ctx }/login">登陆</a>
                    </div>
                    </c:if>
                    <c:if test="${ not empty user  }">
                    <div class="panel-heading">欢迎登陆BBS</div>
                    <div class="panel-body">
                    <div class="media">
                        <div class="media-left">
                            <a href="${ctx }/user/info?userId=${user.id}">
                                <img class="media-object" src="${ctx }${user.head_img_address}" alt="${user.username }">
                            </a>

                        </div>
                        <div class="media-body">
                            <h4 class="media-heading">
                                <a href="${ctx }/user/info?userId=${user.id}">${user.username }</a>
                            </h4>
                            <h5>经验值: 0</h5>
                            <h5>用户组: 
                            	${userGroup.name }
                            </h5>
                            <a class="btn btn-info btn-xs ">站内信 <small class="badge ">0</small></a>
                            <%-- <a class="btn btn-info btn-xs " href="${ctx }/logout">退出</a> --%>
                            <a class="btn btn-warning btn-xs " href="${ctx }/topic/send">发帖</a>
                        </div>
                    </div>
                    <div class="clearfix block"></div>
                </div>
                    </c:if>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">分栏列表</div>
                    <div class="panel-body">
                        <dl>
                            <%--<dt>话题版区</dt>--%>
                            <c:forEach items="${areas}" var="area">
                                <dd style="margin-bottom:4px;">
                                    <span class="text-warning">${area.area_name}</span>
                                    <small class="col-md-offset-1">帖子总数:${area.n}</small>
                                    <small class="">版主:${area.username}</small>
                                </dd>
                            </c:forEach>

                            <%--<dd style="margin-bottom:4px;">
                                <span class="text-warning">工作热门</span>
                                <small class="col-md-offset-1">帖子总数:22</small>
                                <small class="">版主:sSOID</small>
                            </dd>
                            <dd style="margin-bottom:4px;">
                                <span class="text-warning">工作热门</span>
                                <small class="col-md-offset-1">帖子总数:22</small>
                                <small class="">版主:Admin</small>
                            </dd>--%>
                        </dl>
                        <%--<dl>
                            <mark class="text-warning">工作热门</mark>
                            <small class="col-md-offset-1">帖子总数:22</small>
                            <small class="">版主:Admin</small>
                        </dl>--%>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">活跃用户</div>
                    <div class="panel-body">
                        <p></p>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">热门标签</div>
                    <div class="panel-body">
                        <p></p>
                    </div>
                </div>
            </div>